package com.blt.govdata.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.blt.govdata.model.TProject;
import com.blt.govdata.model.vo.TProjectVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * Mapper 接口
 * </p>
 * @author AustinGJ123
 * @since 2018-03-26
 */
public interface TProjectMapper extends BaseMapper<TProject> {

    List<TProjectVo> selectVoPage(Page<TProjectVo> page, Map<String, Object> paramMap);

    TProjectVo selectVoById(String id);

    int selectVoCount(Map<String, Object> paramMap);

    int baseInsert(TProject entity);

    int baseUpdate(TProject entity);

    int baseDelete(String id);

    List<Map<String, Object>> showProject(Map<String, Object> params);

    Page<TProjectVo> selectProjectVoPage(Page<TProjectVo> page, Map<String, Object> params);

    TProjectVo selectProjectBasicInfoById(Map<String, Object> params);

    Page<Map<String, Object>> selectGeometryPage(Map<String, Object> params, Page page);

    List<Map<String,Object>> selectSQL(@Param("sql") String sql);

    List<Integer> selectUserBtns(@Param("userId") Integer userId);
}